export const staticRouter = [
  {
    name: 'home',
    path: '/',
    component: () => import('@/views/HomeView.vue'),
    meta: {
      title: '根路径',
      hidden: false
    }
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('@/views/AboutView.vue'),
    meta: {
      title: '关于',
      hidden: true
    }
  },
  {
    path: '/C',
    name: 'C',
    component: () => import('@/views/C/C.vue'),
    meta: {
      title: 'C',
      hidden: true
    },
    children: [
      {
        path: 'C1',
        name: 'C1',
        component: () => import('@/views/C/C1.vue'),
        meta: {
          title: 'C1',
          hidden: true
        }
      },
      {
        path: 'C2',
        name: 'C2',
        component: () => import('@/views/C/C2.vue'),
        meta: {
          title: 'C2',
          hidden: true
        }
      }
    ]
  },
  {
    path: '/D',
    name: 'D',
    component: () => import('@/views/D/D.vue'),
    meta: {
      title: 'D',
      hidden: true
    },
    children: [
      {
        path: 'D1',
        name: 'D1',
        component: () => import('@/views/D/D1.vue'),
        meta: {
          title: 'D1',
          hidden: true
        }
      }
    ]
  }
]

export const errorRouter = [
  {
    path: '/404',
    name: '404',
    component: () => import('../views/404.vue'),
    meta: {
      title: '404页面',
      hidden: true
    }
  }
]
